DevForce Help Reference
CompositionContext Constructor


The name of the context
Whether the context will do fake filtering
The types which can be instantiated within this context
Create a CompositionContext with the given name, fake filtering, and types specified.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal isFake As Boolean, _
   ByVal ParamArray types() As Type _
)
'Usage
 
Dim name As String
Dim isFake As Boolean
Dim types() As Type
 
Dim instance As New CompositionContext(name, isFake, types)
public CompositionContext( 
   string name,
   bool isFake,
   params Type[] types
)

Parameters

name
The name of the context
isFake
Whether the context will do fake filtering
types
The types which can be instantiated within this context
Remarks
The WithGenerator(Type) method is called for each of the types provided.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompositionContext Class
CompositionContext Members

Send Feedback